<?php
  
  # Notion d'image
  class Image {
    private $url=""; 
    private $id=0;
	private $categorie="";
	private $commentaire="";
    
    function __construct($u,$id,$cat,$com) {
      $this->url = $u;
      $this->id = $id;
	  $this->categorie = $cat;
	  $this->commentaire = $com;
    }
    
    # Retourne l'URL de cette image
    function getURL() {
		return $this->url;
    }
    function getId() {
      return $this->id;
    }
	function getCategorie() {
		return $this->categorie;
	}
	function getCommentaire() {
		return $this->commentaire;
	}
	
	function setCommentaire($comment){
		$this->commentaire = $comment;
	}
	
  }
  
  
?>